Hello everybody,
is there any possibility to call DOORS from c# like in the following VBA script?
Sub testDoors()
Set DOORSObj = CreateObject("DOORS.Application")
SendKeys "user" & "{TAB}" & "password" & "{ENTER}", True
DOORSObj.Result = "Just checking"
DOORSObj.runFile ("C:\Program Files\Telelogic\DOORS_8.3\lib\dxl\addins\user\m.dxl")
DOORSObj.runFile ("C:\Program Files\Telelogic\DOORS_8.3\lib\dxl\addins\user\l.dxl")
End Sub
Thanks in advance
EA2412 - Wed Jan 27 12:13:24 EST 2010 |
|
Re: Using DOORS Automation from C# leporello - Thu Mar 03 09:44:28 EST 2011
Hi,
try following like below:
using DOORSCOMLib;
DOORSCOMLib.DOORS x = new DOORSCOMLib.DOORS ();
SendKeys.Send ( "USER" );
SendKeys.Send ( "{TAB}" );
SendKeys.Send ( "PW" );
SendKeys.Send ( "{TAB}" );
SendKeys.Send ( "{ENTER}" );
...
x.runStr ( "print \"Hello DXL Interaction\"; oleSetResult \"Hello C# Console\"" );
Console.Write ( "Result = " + x.result );
Regards
|
|
Re: Using DOORS Automation from C# Mathias Mamsch - Thu Mar 03 11:02:28 EST 2011
We had a nice solution for this in this post. It will also account for the problem of NOT starting a DOORS session everytime. Regards, Mathias
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|
|
Re: Using DOORS Automation from C# Yujhe.li - Tue Jun 05 07:47:29 EDT 2012 leporello - Thu Mar 03 09:44:28 EST 2011
Hi,
try following like below:
using DOORSCOMLib;
DOORSCOMLib.DOORS x = new DOORSCOMLib.DOORS ();
SendKeys.Send ( "USER" );
SendKeys.Send ( "{TAB}" );
SendKeys.Send ( "PW" );
SendKeys.Send ( "{TAB}" );
SendKeys.Send ( "{ENTER}" );
...
x.runStr ( "print \"Hello DXL Interaction\"; oleSetResult \"Hello C# Console\"" );
Console.Write ( "Result = " + x.result );
Regards
Hi, could you tell me how to implement "DOORSCOMLib"? Or tell me where could I get that file?
Thanks.
|
|
Re: Using DOORS Automation from C# Mathias Mamsch - Tue Jun 05 07:52:58 EDT 2012 Yujhe.li - Tue Jun 05 07:47:29 EDT 2012
Hi, could you tell me how to implement "DOORSCOMLib"? Or tell me where could I get that file?
Thanks.
DOORSCOMLib comes installed with DOORS. You need to add that to the references of your project. Regards, Mathias
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|
|
Re: Using DOORS Automation from C# Yujhe.li - Tue Jun 05 08:57:19 EDT 2012 Mathias Mamsch - Tue Jun 05 07:52:58 EDT 2012
DOORSCOMLib comes installed with DOORS. You need to add that to the references of your project. Regards, Mathias
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
But I still can't find the library file, so can't reference the library. Could you tell me the exactly file path or file name?
Thanks a lot.
|
|
Re: Using DOORS Automation from C# Yujhe.li - Tue Jun 05 14:06:56 EDT 2012 Mathias Mamsch - Tue Jun 05 07:52:58 EDT 2012
DOORSCOMLib comes installed with DOORS. You need to add that to the references of your project. Regards, Mathias
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
Mathias, thanks a lot. I have solve my problem.
|
|